package com.ruoyi.db.domain.system;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 用户分红收益对象 mp_client_earns
 * 
 * @author ruoyi
 * @date 2022-08-04
 */
@ApiModel(value = "MpClientEarns",description = "用户分红收益对象 mp_client_earns")
public class MpClientEarns extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户分红收益表 */
    private Long id;

    /** 用户ID */
    @ApiModelProperty(value="用户ID",name="MpClientEarns$clientId")
    @Excel(name = "用户ID")
    private Long clientId;

    /** 下级ID */
    @ApiModelProperty(value="下级ID",name="MpClientEarns$childId")
    @Excel(name = "下级ID")
    private Long childId;

    /** 下级业绩 */
    @ApiModelProperty(value="下级业绩",name="MpClientEarns$childAmount")
    @Excel(name = "下级业绩")
    private BigDecimal childAmount;

    /** 用户获取的收益 */
    @ApiModelProperty(value="用户获取的收益",name="MpClientEarns$clientEarns")
    @Excel(name = "用户获取的收益")
    private BigDecimal clientEarns;
    /** 用户获取的收益 */
    @ApiModelProperty(value="内容",name="MpClientEarns$content")
    @Excel(name = "内容")
    private String content;

    public Integer getEarnsType() {
        return earnsType;
    }

    public void setEarnsType(Integer earnsType) {
        this.earnsType = earnsType;
    }

    @ApiModelProperty(value="1直推收益，2间，3v",name="MpClientEarns$earnsType")
    @Excel(name = "1直推收益，2间，3v")
    private Integer earnsType;
    //是否有效
    private Integer isAble;

    public Integer getIsAble() {
        return isAble;
    }

    public void setIsAble(Integer isAble) {
        this.isAble = isAble;
    }

    public BigDecimal getShouldAmount() {
        return shouldAmount;
    }

    public void setShouldAmount(BigDecimal shouldAmount) {
        this.shouldAmount = shouldAmount;
    }

    //应发金额
    private BigDecimal shouldAmount;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    private String startTime;
    private String endTime;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setChildId(Long childId) 
    {
        this.childId = childId;
    }

    public Long getChildId() 
    {
        return childId;
    }
    public void setChildAmount(BigDecimal childAmount) 
    {
        this.childAmount = childAmount;
    }

    public BigDecimal getChildAmount() 
    {
        return childAmount;
    }
    public void setClientEarns(BigDecimal clientEarns) 
    {
        this.clientEarns = clientEarns;
    }

    public BigDecimal getClientEarns() 
    {
        return clientEarns;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientId", getClientId())
            .append("childId", getChildId())
            .append("childAmount", getChildAmount())
            .append("clientEarns", getClientEarns())
            .append("createTime", getCreateTime())
            .toString();
    }
}
